<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户详情页面</title>
    <script th:src="@{/webjars/jquery/3.3.1/jquery.min.js}"></script>
    <script th:src="@{/webjars/bootstrap/4.3.1/js/bootstrap.min.js}"></script>
    <!--    解释css-->
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/4.3.1/css/bootstrap.min.css}"/>
    <!--    引入自己写的css样式-->
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/style.css}">
</head>
<body>
  <div class="container">
      <table class="table table-hover">
          <thead class="thead-dark">
          <tr>
              <th scope="col">id</th>
              <th scope="col">姓名</th>
              <th scope="col">性别</th>
              <th scope="col">生日</th>
              <th scope="col">年龄</th>
              <th scope="col">一些描述</th>
          </tr>
          </thead>
          <tbody>
              <tr>
                  <td th:text="${user.id}"></td>
                  <td th:text="${user.name}"></td>
                  <td>
                      <span th:if="${user.sex}==1">男</span>
                      <span th:if="${user.sex}==2">女</span>
                  </td>
                  <td th:text="${#dates.format(user.birthday,'yyyy-MM-dd')}"></td>
                  <td th:text="${user.age}"></td>
                  <td th:text="${user.note}"></td>
              </tr>
      </table>
      <button type="submit" onclick="javascript:history.back(-1);"  class="btn btn-primary">返回</button>
  </div>
</body>
</html>